classdef Singleton < handle
    properties(Access=private)
        singletonData = [];
    end
    
    methods(Abstract, Static)
        obj = instance();
    end
    
    methods % Public Access
        function singletonData = getSingletonData(obj)
            singletonData = obj.singletonData;
        end
        
        function setSingletonData(obj, singletonData)
            obj.singletonData = singletonData;
        end
        
    end
end